from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By

chrome_browser = webdriver.Chrome()
chrome_browser.get('https://www.so.com/')
chrome_browser.maximize_window()
control_element1 = chrome_browser.find_element(By.ID, 'input')
control_element1.send_keys('python')
control_element1.send_keys(Keys.ENTER)
control_element2 = chrome_browser.find_element(By.ID, 'su')
control_element2.click()
print(chrome_browser.page_source)

